﻿using System;

namespace Yaml.Presentation.Tokens {
    public class AnchorToken : Token {
        private string anchor;
        public AnchorToken(Mark start, Mark end, string anchor)
            : base(start, end) {
            this.anchor = anchor;
        }
        public string Anchor {
            get { return this.anchor; }
        }

        public override String ToString() {
            return "#<" + this.GetType().Name + " anchor='" + anchor + "' start=" + Start.ToString() + " end=" + End.ToString() + ">";
        }
    }
}